/*
 * $Id$
 */
package py.windmill.resolution;

import py.windmill.action.MimeType;
import py.windmill.action.Request;
import py.windmill.action.Resolution;
import py.windmill.action.ValidationErrors;

/**
 *
 * @author myang
 */
public abstract class ResolutionSupport implements Resolution {
   
    private MimeType _produce;

    public ResolutionSupport(final MimeType produce) {
        _produce = produce;
    }

    @Override
    public MimeType produce() {
        return _produce;
    }

    @Override
    public void execute(final Request req, final ValidationErrors errors) {
        execute(req, (Object)errors);
    }
}
